﻿using JTTD.Domain.Dtos;
using JTTD.Domain.Dtos.ShopCoupon.Request;
using JTTD.Domain.Dtos.ShopCoupon.Response;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace JTTD.Domain.IService
{
    /// <summary>
    /// 店铺优惠券服务
    /// </summary>
    public  interface IShopCouponService: IDependency
    {
        /// <summary>
        /// 分页获取当前用户能使用的店铺优惠券
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult<PageResult<ShopCouponResponseDto>>> GetShopCouponPageList(int userId,ShopCouponSearchRequestDto dto);

        /// <summary>
        /// 店铺优惠券核销
        /// </summary>
        /// <param name="no"></param>
        /// <returns></returns>
        Task<ApiResult<bool>> ChangeShopCoupon(string no);

        /// <summary>
        /// 分页获取用户领取当前店铺的所有店铺优惠券
        /// </summary>
        /// <param name="shopId"></param>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult<PageResult<ShopCouponResponseDto>>> GetShopCouponPageListByShop(int shopId, ShopCouponSearchByShopRequestDto dto);
    }
}
